/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models.dados;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Wenderson
 */
public interface HibernateGeneric<T, Type extends Serializable> {
    void beginTransaction();
    void commitTransaction();
    void saveOrUpdate(T entity);
    T obter(Type id);
    void delete(T entity);
    void deleteId(Type id);
    List<T> listAll();    
}
